package com.ruoyi.operators.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.operators.mapper.OperatorsMapper;
import com.ruoyi.operators.domain.Operators;
import com.ruoyi.operators.service.IOperatorsService;

/**
 * 算子Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-05-26
 */
@Service
public class OperatorsServiceImpl implements IOperatorsService 
{
    @Autowired
    private OperatorsMapper operatorsMapper;

    /**
     * 查询算子
     * 
     * @param name 算子主键
     * @return 算子
     */
    @Override
    public Operators selectOperatorsByName(String name)
    {
        return operatorsMapper.selectOperatorsByName(name);
    }

    /**
     * 查询算子列表
     * 
     * @param operators 算子
     * @return 算子
     */
    @Override
    public List<Operators> selectOperatorsList(Operators operators)
    {
        return operatorsMapper.selectOperatorsList(operators);
    }

    /**
     * 新增算子
     * 
     * @param operators 算子
     * @return 结果
     */
    @Override
    public int insertOperators(Operators operators)
    {
        return operatorsMapper.insertOperators(operators);
    }

    /**
     * 修改算子
     * 
     * @param operators 算子
     * @return 结果
     */
    @Override
    public int updateOperators(Operators operators)
    {
        return operatorsMapper.updateOperators(operators);
    }

    /**
     * 批量删除算子
     * 
     * @param names 需要删除的算子主键
     * @return 结果
     */
    @Override
    public int deleteOperatorsByNames(String[] names)
    {
        return operatorsMapper.deleteOperatorsByNames(names);
    }

    /**
     * 删除算子信息
     * 
     * @param name 算子主键
     * @return 结果
     */
    @Override
    public int deleteOperatorsByName(String name)
    {
        return operatorsMapper.deleteOperatorsByName(name);
    }
}
